package com.breakfast.fun.ui.user.invite;

import com.breakfast.fun.base.BaseModel;
import com.breakfast.fun.base.BasePresenter;
import com.breakfast.fun.base.BaseView;
import com.breakfast.fun.data.entity.user.invite.Invite;
import com.breakfast.fun.data.entity.user.invite.InviteData;
import com.breakfast.fun.data.entity.user.Result;

import java.util.List;
import java.util.Map;

import retrofit2.http.FieldMap;
import rx.Observable;

/**
 * Created by Administrator on 2016/8/24.
 */
public interface UserInviteContract {
    interface Model extends BaseModel {
        Observable<Invite> getInviteModel(@FieldMap Map<String, String> map);

        Observable<Result> getRemindModel(@FieldMap Map<String, String> map);
    }

    interface View extends BaseView {
        void showInvite(List<InviteData> inviteDataList);
    }

    abstract class Presenter extends BasePresenter<Model, View> {
        public abstract void getInvite();

        public abstract void remind(InviteData data);
    }
}
